package com.example.demo.dao;

import com.example.demo.entity.Recreation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
@Mapper
public interface RecreationDao {
    //查询所有娱乐项目
    public List<Recreation> getAll();

    //添加娱乐项目
    public int addRecreation(Recreation recreation);



    public int update(Recreation recreation);


    @Select("delete from treavel_recreation where rid=#{rid}")
    public int delete(Integer rid);





}
